package com.emall.auth.feign;

import com.common.utils.R;
import com.emall.auth.vo.SocialUser;
import com.emall.auth.vo.UserLoginVo;
import com.emall.auth.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author YuanShijia
 * @ClassName MemberFeignService.java
 * @Description
 * @createTime 2020年05月23日 11:24:00
 */
@FeignClient("emall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/regist")
    R regist(@RequestBody UserRegistVo vo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo vo);

    @PostMapping("/member/member/oauth2/login")
    R oauthLogin(@RequestBody SocialUser socialUser);
}
